package com.nyist.zk.service.impl;

import com.nyist.zk.dao.UseBloodDao;
import com.nyist.zk.entities.UseBlood;
import com.nyist.zk.service.UseBloodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * description: UseBloodServiceImpl
 * date: 2020/3/23 13:23
 * author: YXG
 * version: 1.0
 */
@Service
public class UseBloodServiceImpl implements UseBloodService {

    @Autowired
    private UseBloodDao useBloodDao;

    @Override
    public List<UseBlood> findAllUseBlood() {
        return useBloodDao.findAllUseBlood();
    }

    @Override
    public List<UseBlood> findByUdIdAllUseBlood(Integer u_d_id) {
        return useBloodDao.findByUdIdAllUseBlood(u_d_id);
    }

    @Override
    public UseBlood findByUidUseBlood(Integer u_id) {
        return useBloodDao.findByUidUseBlood(u_id);
    }

    @Override
    public void insertUseBlood(UseBlood useBlood) {
        useBloodDao.insertUseBlood(useBlood);
    }

    @Override
    public void deleteUseBlood(Integer u_id) {
        useBloodDao.deleteUseBlood(u_id);
    }

    @Override
    public void updateUseBlood(UseBlood useBlood) {
        useBloodDao.updateUseBlood(useBlood);
    }
}
